#include "ot-builtins.h"
#include "ostree.h"
#include "otutil.h"
+#include "ostree-core-private.h"
static gboolean opt_delete;
static char *opt_gpg_homedir;
g_variant_dict_init (&metadata_dict, old_metadata);
signature_data = g_variant_dict_lookup_value (&metadata_dict,
- "ostree.gpgsigs",
+ _OSTREE_METADATA_GPGSIGS_NAME,
G_VARIANT_TYPE ("aay"));
/* Taking the approach of deleting whatever matches we find for the
/* Update the metadata dictionary. */
if (g_queue_is_empty (&signatures))
{
- g_variant_dict_remove (&metadata_dict, "ostree.gpgsigs");
+ g_variant_dict_remove (&metadata_dict, _OSTREE_METADATA_GPGSIGS_NAME);
}
else
{
}
g_variant_dict_insert_value (&metadata_dict,
- "ostree.gpgsigs",
+ _OSTREE_METADATA_GPGSIGS_NAME,
g_variant_builder_end (&signature_builder));
}
#include <err.h>
+#include "ostree-repo-private.h"
+#include "ostree-repo-static-delta-private.h"
#include "ot-dump.h"
#include "otutil.h"
#include "ot-admin-functions.h"
g_autofree gchar *value_str = NULL;
const gchar *pretty_key = NULL;
- if (g_strcmp0 (key, "ostree.static-deltas") == 0)
+ if (g_strcmp0 (key, OSTREE_SUMMARY_STATIC_DELTAS) == 0)
{
pretty_key = "Static Deltas";
value_str = g_variant_print (value, FALSE);
}
- else if (g_strcmp0 (key, "ostree.summary.last-modified") == 0)
+ else if (g_strcmp0 (key, OSTREE_SUMMARY_LAST_MODIFIED) == 0)
{
pretty_key = "Last-Modified";
value_str = uint64_secs_to_iso8601 (GUINT64_FROM_BE (g_variant_get_uint64 (value)));
}
- else if (g_strcmp0 (key, "ostree.summary.expires") == 0)
+ else if (g_strcmp0 (key, OSTREE_SUMMARY_EXPIRES) == 0)
{
pretty_key = "Expires";
value_str = uint64_secs_to_iso8601 (GUINT64_FROM_BE (g_variant_get_uint64 (value)));